package net.funtip.ormgenerator.util;

public class Tools {

	public static String getTypeNameWithoutPackage(String type) {
		// FIXME should work for complex types like "java.util.Map<String, java.util.List<String>>" too
		
		int index = type.lastIndexOf('.');
		if (index != -1) {
			return type.substring(index+1);
		} else {
			return type;
		}
	}


}
